<div id="content">
    <div class="row s_page_title">
        <sa-big-breadcrumbs [items]="['日志信息管理','切换系数日志']" icon="fa fa-tag" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
    </div>
    <sa-widgets-grid>
        <div class="s_table">
            <div sa-widget [editbutton]="false" color="darken" class="clearfix">
                <header><span class="widget-icon"> <i class="fa fa-table"></i> </span>
                    <h2>切换系数日志</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <div class="page-header clearfix s_table_opreation">
                            <div class="left page-header-btn">
                                <sa-company-tree-car companyTreeId="companyTree" [isShowCarSort]="true" (companySelected)="companySelected($event)"></sa-company-tree-car>
                                <div class="top_module top_module_box">
                                    <span class="top_module_label module_text">是否推送</span>
                                    <select name="" class="top_module_select" [(ngModel)]="tableSearchParam.isPush">
                                        <option value="">全部</option>
                                        <option value="1">推送 </option>
                                        <option value="0">不推送 </option>
                                    </select>
                                </div>

                                <div class="selectDate top_module">
                                    <table-select-date [notInit]='false' (outerTime)="dateSelect($event)"></table-select-date>
                                </div>
                                <button type="button" class="btn btn-primary" (click)="tableSearch()">查询</button>
                                <button type="button" class="btn btn-primary" (click)="exportData()">导出</button>
                            </div>
                        </div>
                        <div class="table_scroll">
                            <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                                <thead>
                                    <tr>
                                        <th>车牌号码</th>
                                        <th>车辆类型</th>
                                        <th>所属公司</th>
                                        <th>设备ID</th>
                                        <th>是否推送</th>
                                        <th>下发系数</th>
                                        <th>操作时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr *ngFor="let row of tableData">
                                        <td>{{row.carNumber}}</td>
                                        <td>{{row.useTypeL2}}</td>
                                        <td>{{row.companyName}}</td>
                                        <td>{{row.deviceId}}</td>
                                        <td>
                                            <span *ngIf="row.push" style="color: green;">是</span>
                                            <span *ngIf="!row.push" style="color: orange;">否</span>
                                        </td>

                                        <td>
                                            <span *ngIf='row.ceof.length >0'>
												<span>[</span><span *ngFor="let lis of row.ceof;let i = index;">
													<span style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span *ngIf="i < row.ceof.length-1">,</span></span>
                                            </span><span>]</span>
                                            </span>
                                        </td>

                                        <td>{{row.createTime}}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="table-fix clearfix">
                            <paginator [totalRecords]="totalCounts" [rows]="pageSize" [currentPage]="curPage - 1" (onPageChange)="paginate($event)">
                            </paginator>
                            <button type="button" class="btn default refresh_btn" (click)="refresh()"><i
									class="fa fa-refresh"></i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </sa-widgets-grid>
</div>